<?php
/**
 *
 */
use Fox\Common\Customer;
use Fox\Html\DropList;
use Fox\Generator;
use Fox\Common\Customer\Type;
$block = new Fox\Html\Block("bHeader",Msg(Customer::BUNDLE_NAME,6));
$block->add(new Fox\Html\Input("customer_code"))->printable();
$finder = new Type();
$types = $finder->find(new Fox\Dao\SqlFragment("language = ? AND active = ? ",
array(Xview::instance()->language(),1)));
$block->add(new DropList(array("customer_type","type"),true,false,true))
->options($types,Generator::useAttribute('type'),Generator::useAttribute('label'));

return $block;